package com.tac.dao;

import com.tac.pojo.Course;
import com.tac.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseDao {
    @Select("select * from course ")
    public List<Course> selectAll();

    public Integer updateAmount(Integer cid);
    public Integer updateAmount2(Integer cid);

    @Delete("delete from course where id=#{id}")
    public Integer delete(Integer cid);
}
